package edu.qc.cs370.project1;

import java.util.ArrayList;

public class Storage {
	private int numberOfPlayers;
	private Player dealer;
	private ArrayList<Player> players;
	private Deck deck;
	public final static int ANTE = 10;
	private int pot;

	public Storage() {
		players = new ArrayList<Player>();
		dealer = new Player();
		dealer.setPlayerType(2);
		dealer.setMoney(100000000);
		dealer.setName("Dealer");
		dealer.setScore(0);
		numberOfPlayers = 0;
	}

	public void createDeck(int i) {
		deck = new Deck(i);
	}

	public Player getDealer() {
		return dealer;
	}

	public Deck getDeck() {
		return deck;
	}

	public void setDeck(Deck deck) {
		this.deck = deck;
	}

	public ArrayList<Player> getPlayers() {
		return players;
	}

	public void setNumberOfPlayers(int numberOfPlayers) {
		this.numberOfPlayers = numberOfPlayers;
	}

	public int getNumberOfPlayers() {
		return numberOfPlayers;
	}

	public int getPot() {
		return pot;
	}

	public void setPot(int pot) {
		this.pot = pot;
	}

	public Player getPlayer(int i)
	{
		return this.players.get(i);
	}
	
	public boolean isDealer()
	{
		return false;
	}
}
